<?php

include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$id =  isset($_GET['id'])?intval($_GET['id']):0;
$info = managerinfo($id);

if(!$info){
	echo "<script>window.location.href='managerlist.php';</script>";exit;
}
$tpl->assign('info',$info[0]);
$tpl->show('manageredit');
?>